package per.zhang.serverPrevioder.entity;


import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * <p>
 * 
 * </p>
 *
 * @author Zhang
 * @since 2021-01-25
 */
@Data
@ApiModel(value="vaccineOrder")
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "vaccine_order")
public class VaccineOrder implements Serializable {



    /**
     * 疫苗采购订单id
     */
    
    @Id
    @Column(name = "order_id")
    @ApiModelProperty(value = "疫苗采购订单id",name = "orderId",dataType = "String")
    private String orderId;

    /**
     * 疫苗id
     */
    @Column(name = "vaccine_id")
    @ApiModelProperty(value = "疫苗id",name = "vaccineId",dataType = "Integer")
    private Integer vaccineId;

    /**
     * 疫苗订单的疫苗数量
     */
    @Column(name = "vaccine_num")
    @ApiModelProperty(value = "疫苗订单的疫苗数量",name = "vaccineNum",dataType = "Integer")
    private Integer vaccineNum;

    /**
     * 疫苗单价
     */
    @Column(name = "vaccine_price")
    @ApiModelProperty(value = "疫苗单价",name = "vaccinePrice",dataType = "BigDecimal")
    private BigDecimal vaccinePrice;

    /**
     * 总价
     */
    @Column(name = "total_price")
    @ApiModelProperty(value = "总价",name = "totalPrice",dataType = "BigDecimal")
    private BigDecimal totalPrice;

    /**
     * 创建时间
     */
    @Column(name = "creat_time")
    //@DateTimeFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy年MM月dd日 HH时:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间",name = "creatTime",dataType = "LocalDateTime")
    private Date creatTime;

    @Column(name = "state")
    @ApiModelProperty(value = "",name = "state",dataType = "String")
    private String state;


}


